﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UniCT.LinkShareWpf.Interface;

namespace UniCT.LinkShareWpf.Runtime
{
    public class MyTempResourcesList : LinkedList<NetResource>
    {

        #region Static
        private static MyTempResourcesList instance = null;

        public static MyTempResourcesList Instance
        {
            get
            {
                if (instance == null)
                    instance = new MyTempResourcesList();
                return instance;
            }
        }
        #endregion

        public EventHandler addNewResource;

        public MyTempResourcesList()
        {

        }
        public void AddResource(NetResource value)
        {

              base.AddFirst(value);
              addNewResource(this, EventArgs.Empty);
              
        }



        
    }


    

}
